Package com.cisco.pt.ipc.sim.impl
Class FTPUserAccountManagerImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.FTPUserAccountManagerImpl
- All Implemented Interfaces:
IPCObject,FTPUserAccountManager
Information provided by the PKI file:
\class FtpUserAccountManager
\brief FtpUserAccountManager manages user accounts for FTP servers.
\example network().getDevice("Server0").getProcess("FtpServer").getFtpUserAccountManager()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionFTPUserAccountManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFtpUser(String username, String password, String perms) Information provided by the PKI file:getPasswordAt(int i) Information provided by the PKI file:getPermissionAt(int i) Information provided by the PKI file:getUsernameAt(int i) Information provided by the PKI file:intInformation provided by the PKI file:booleanisExistingUser(String username) Information provided by the PKI file:voidremoveFtpUser(String username) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
FTPUserAccountManagerImpl
public FTPUserAccountManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
addFtpUser
Information provided by the PKI file:
\brief Adds an FTP user account with the specified username, password, and permissions. \param username, the username for the account. \param password, the password for the account. \param perms, the permissions for the account. Permissions: R - Read W - Write N - Rename L - List D - Delete Example: "RW" will permit read and write operations- Specified by:
addFtpUserin interfaceFTPUserAccountManager- Parameters:
username- Takes in a parameter of usernamepassword- Takes in a parameter of passwordperms- Takes in a parameter of perms
-
removeFtpUser
Information provided by the PKI file:
\brief Removes the specified FTP user account. \param username, the username of the account of interest.- Specified by:
removeFtpUserin interfaceFTPUserAccountManager- Parameters:
username- Takes in a parameter of username
-
isExistingUser
Information provided by the PKI file:
\brief Returns true if the specified username already exists, otherwise false. \param username, the username of the account of interest. \return bool, true if the specified username already exists, otherwise false.- Specified by:
isExistingUserin interfaceFTPUserAccountManager- Parameters:
username- Takes in a parameter of username- Returns:
- boolean Returns a boolean
-
getUsersCount
public int getUsersCount()Information provided by the PKI file:
\brief Returns the number of users accounts. \return int, the number of users accounts.- Specified by:
getUsersCountin interfaceFTPUserAccountManager- Returns:
- int Returns a int
-
getUsernameAt
Information provided by the PKI file:
\brief Returns the username at given index. \param i, index of the user. \return string, the username at given index.- Specified by:
getUsernameAtin interfaceFTPUserAccountManager- Parameters:
i- Takes in a parameter of i- Returns:
- String Returns a String
-
getPasswordAt
Information provided by the PKI file:
\brief Returns the password at given index. \param i, index of the user. \return string, the password at given index.- Specified by:
getPasswordAtin interfaceFTPUserAccountManager- Parameters:
i- Takes in a parameter of i- Returns:
- String Returns a String
-
getPermissionAt
Information provided by the PKI file:
\brief Returns the permission at given index. \param i, index of the user. \return string, the permission at given index.- Specified by:
getPermissionAtin interfaceFTPUserAccountManager- Parameters:
i- Takes in a parameter of i- Returns:
- String Returns a String
-